package com.mxpio.erp.equipment.service.impl;

import com.mxpio.erp.common.equipment.entity.EquipmentCommParametersDetail;
import com.mxpio.erp.common.equipment.service.EquipmentCommParametersDetailService;
import com.mxpioframework.jpa.query.Criteria;
import com.mxpioframework.jpa.query.Operator;
import com.mxpioframework.system.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 公共参数选项Service业务层处理
 *
 * @author Cheng
 * @date 2023-06-28
 */
@Service
public class EquipmentCommParametersDetailServiceImpl extends BaseServiceImpl<EquipmentCommParametersDetail> implements EquipmentCommParametersDetailService {

    @Override
    @Transactional(readOnly = true)
    public List<EquipmentCommParametersDetail> selectByMainId(String mainId) {
        Criteria c = Criteria.create().addCriterion("paraId", Operator.EQ, mainId);
        return list(EquipmentCommParametersDetail.class,c);
    }

}
